package Homework7;

public class Shop extends HouseProperty {
    public Shop(double area, double unitPrice) {
        super(area, unitPrice);
    }

    @Override
    public double taxCalculation() {
        double totalPrice = getTotalPrice();
        if (area <= 30) {
            return totalPrice * 0.03;
        } else if (area <= 100) {
            return totalPrice * 0.04;
        } else {
            return totalPrice * 0.05;
        }
    }
}
